/// 群自定义数据
class GroupCustomDataModel {
  late bool revokeMsgOpt;

  GroupCustomDataModel({required this.revokeMsgOpt});

  GroupCustomDataModel.fromJson(Map<String, String> json) {
    revokeMsgOpt = json["revokeMsgOpt"] == "0";
  }

  Map<String, String> toJson() {
    final Map<String, String> data = {};
    data["revokeMsgOpt"] = revokeMsgOpt == true ? "0" : "1";
    return data;
  }

  GroupCustomDataModel copyWith({
    bool? revokeMsgOpt,
  }) {
    return GroupCustomDataModel(
      revokeMsgOpt: revokeMsgOpt ?? this.revokeMsgOpt,
    );
  }
}
